//
//  WithdrawWXCell.m
//  HTHappySale
//
//  Created by 创维海通 on 2017/9/26.
//  Copyright © 2017年 zxyywy. All rights reserved.
//

#import "WithdrawWXCell.h"

@interface WithdrawWXCell ()<UITextFieldDelegate>
{
    float_t moneyValue;
}
- (IBAction)withdrawBtn:(id)sender;
@property (strong, nonatomic) IBOutlet UITextField *priceText;

@end

@implementation WithdrawWXCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configureCell:(float_t)price
{
    moneyValue = price;
}

- (IBAction)withdrawBtn:(id)sender {
    _priceText.text = [NSString stringWithFormat:@"%.2f",moneyValue];
}

#pragma mark -textFieldDelegate
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
@end
